import { createPinia } from 'pinia'
import { useAppStore } from './app'
import { useUserStore } from './user'
import { usePermissionStore } from './permission'
import { useMenuStore } from './menu'
import { useSettingsStore } from './settings'

const store = createPinia()

// 全局注册 store
export function setupStore(app) {
  app.use(store)
}

export { store, useAppStore, useUserStore, usePermissionStore, useMenuStore, useSettingsStore }
